LassoScript Utility
Basics Browse Detail

[File->MoveTo]

Tag Link [File->MoveTo] Category File
Type Member Source Available No
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type None Security File
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

Moves the file to the new path. Requires a path on the local server as a parameter.

Syntax

[File Variable->(MoveTo: '/folder/file.txt')]

Parameters

Required Parameters
'File path' The name and path to a new file.

Examples

To move a file to a different folder:

Use the [File->MoveTo] tag. The following examples moves the local myfile.txt file to a different to folder on a Mac OS X hard drive.

[Var:'File'=(File: 'myfile.txt', File_OpenRead, File_ModeChar)]
[$File->(MoveTo:'///Library/WebServer/Documents/myfile.txt')]
[$File->Close]